﻿using SqlSugar;
using System;

namespace Budget.Model
{
    public class BaseModel
    {
        public BaseModel()
        {
            if(string.IsNullOrEmpty(Id))
            {
                Id = Guid.NewGuid().ToString();
            }
        }
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_date")]
        public DateTime CreateDate { get; set; }
    }
}
